<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/css/shopping.css">
    <link rel="stylesheet" href="/css/iconfont.css">
    <title>购物车</title>
</head>

<body>
    <header></header>
    <div class="all-bgc">
        <table cellspacing="0">
            <thead>
                <th width="110px">


                </th>
                <th width="550px">商品名称</th>
                <th width="100px">单价（元）</th>
                <th width="155px">数量</th>
                <th width="175px">金额（元)</th>
                <th width="200px">操作</th>

            </thead>
            <tbody>
            </tbody>
        <script type="text/html" id="shopTable">
                <tr>
                    <td > <input type="checkbox" id="all-check" checked>  </td>
                    <td><span>商品供应商:衍界</span></td>
                </tr>
                {{each info item }}
            <tr data-id="{{item.id}}">
                <td width="110px" class="tdfirst"><input type="checkbox" class="checks" {{item.check ? 'checked':''}}></td>
                <td width="550px" class="tdsecend"><a href="/html/detail.html?id={{item.id}}"><img src="{{item.imgUrl}}" alt=""></a> <span>{{item.title}}</span></td>
                <td  width="100px" class="shopprice">{{item.price}}元</td>
                <td  width="155px" class="shopcounts">
                    <input type="button" class="shuliangup" value="-">
                    <input type="text" class="shuliang" value="{{item.num}}">
                    <input type="button" class="shuliangdown" value="+">
                    <!-- <span class="zdyid" style="display:none">{{item.id}}</span> -->
                </td>
                <td width="175px" class="zongjia">{{(item.price * item.num).toFixed(2)}}元</td>
                <td width="200px" class="caozuo"><a href="javascript:;" class="delatebtn">删除</a></td>
            </tr>
            {{/each}}
        </script>



        </table>
        <div class="shopfoot">
            <a href="#">结算</a>
            <b>总价：<span class="money">0.00</span>元</b>
        </div>
    </div>

    <footer></footer>
    <script src="/libs/require/require.min.js" data-main="/js/shopping"></script>
</body>

</html>